package main
import (
	"fmt"
)

type Carss interface {
	Name() string
}


type BMW struct {
	Type string
}

func (b *BMW) Name() string{
	return b.Type
}

func Test() Carss{
	return &BMW{
		Type: "x7"}
}

func main(){
	s := Test()
	fmt.Println(s.Name())
}